package com.mall.test;

import java.io.Serializable;
import java.util.List;

/**
 * @author lwd1513
 * @date 2022-04-28 19 30
 * discription
 */
public class DTO implements Serializable {
    private  List<Student> students;
    private String name;

    public DTO() {

    }

    public DTO(List<Student> students, String name) {
        this.students = students;
        this.name = name;
    }

    @Override
    public String toString() {
        return "DTO{" +
                "students=" + students +
                ", name='" + name + '\'' +
                '}';
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
